#include "graph.h"
int main()
{
    Graph * graph=new Graph(6);
    graph->addEdge(0,1,16);
    graph->addEdge(0,5,13);
    graph->addEdge(1,2,12);
    graph->addEdge(2,3,20);
    graph->addEdge(2,5,9);
    graph->addEdge(4,2,7);
    graph->addEdge(4,3,4);
    graph->addEdge(5,1,4);
    graph->addEdge(5,4,14);
    cout<<"从0到3的最大流为"<<graph->ford_fulkerson(0,3)<<endl;
    delete graph;
    return 0;
}
